package com.itmk.web.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itmk.web.order.entity.Order;
import com.itmk.web.order.entity.OrderVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public interface OrderMapper extends BaseMapper<Order> {
    IPage<OrderVo> getList(IPage<OrderVo> page, @Param("goodsName") String goodsName);

    List<Map<String, Object>> selectOrderCountByDate(@Param("startDate") LocalDate startDate,
                                                     @Param("endDate") LocalDate endDate);

}
